package com.ee.chat.api.service;

import com.ee.chat.api.vo.EquipmentVO;
import com.ee.chat.common.bean.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author Shane
 * @Date 2019/7/23 14:46
 */
public interface IBaseService {
    /**
     * 发送验证码
     * @param phone
     * @param op
     * @return
     * @throws Exception
     */
    Result sendCode(String token, String phone, String op) throws Exception;

    /**
     * 获取上传凭证
     * @Author Shane
     * @Date 2019/7/23 14:49
     * @param
     * @return
     */
    Result getUploadToken(HttpServletRequest request, String fileName) throws Exception;

    /**
     * 获取上传签名
     * @Author Shane
     * @Date 2019/9/15 21:18
     * @param
     * @return
     */
    Result getUploadSign(HttpServletRequest request) throws Exception;

    Result getBaseInfo(String token, String extra) throws Exception;

    Result verifySensitiveWord(String token, String list) throws Exception;

    Result getNewestVersion(Integer type) throws Exception;

    Result ossCallback(HttpServletRequest request) throws Exception;

    void addAccessLog(Integer userId, Integer toUserId) throws Exception;

    Result addClickLog(HttpServletRequest request, EquipmentVO equipment) throws Exception;
}
